| User Guide > How To > Analyze Barcodes |
Barcode Xpress for Node.js detects all barcodes in an image and gives you complete details about them.
Barcodes supported for recognition are listed in the Supported Barcode Types.
Once the barcode type has been determined, use the following method and parameters to recognize the barcode.
|
Copy Code
|
|
|---|---|
var bx = require('barcode-js'); var params = { input: 'filePath/fileName', type: 'all' }; bx.analyze(params, function (err, results) { if (err) { console.error("There was an error processing this image", err); return; } results.forEach(function(result) { console.log ('Result type ' + result.type); console.log ('\t' + 'value ' + result.value); }); }); |
|